<?php global $ubi?>
<div class="yd_rp_widget">
	<?php
		$i = 0;
		global $ubi;
		foreach ($providers as $provider) {
			$i++;
	?>
			<h4>
				<a href="index.php?view&type=provider&id=<?php echo $provider->getProviderID()?>">                            	
	            	<img src="<?php echo $ubi['SERVER']['THUMBNAIL_PATH'];?>/<?php echo $imgProviders[$provider->getProviderID()]?>" class="smallAvatar" />
	            	<?php echo $provider->getProvider()?>
	            </a>			
            </h4>
	<?php 
			if ($i % $ubi['SITE']['N_POST_PER_ROW'] == 0) {
	?>
				<div style="clear:both"></div>
	<?php 
			}
		} 
		$i = 0;
		foreach ($items as $item) {
			$i++;
	?>
			<h4>
				<a href="index.php?view&type=item&id=<?php echo $item->getItemID()?>">                            	
	            	<img src="<?php echo $ubi['SERVER']['THUMBNAIL_PATH'];?>/<?php echo $imgItems[$item->getItemID()]?>" class="smallAvatar" />
	            	<?php echo $item->getItem()?>
	            </a>			
            </h4>
	<?php 
			if ($i % $ubi['SITE']['N_POST_PER_ROW'] == 0) {
	?>
			<div style="clear:both"></div>
	<?php			
			}
		}
	?>    	
</div>
<hr />